package com.ruoyi.web.controller.system;

import com.ruoyi.system.domain.EmailMessage;
import com.ruoyi.system.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * class
 *
 * @description: 发送邮件controller层
 * @author: mabo
 * @date: 2022/1/29
 */
@RestController
public class MailController {
    @Autowired
    private MailService mailService;

    @RequestMapping(value = "/sendMessage", method = RequestMethod.GET)
    public void sendMailMessage() {
        mailService.sendMessageMail();
    }
}
